package com.kgc.dao;

import com.kgc.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :qinya
 * @PackageName:com.kgc.dao
 * @ClassName: AddressMapper
 * @Description: TODO
 * @date : 2025/5/20,20:19
 */
@Mapper
public interface AddressMapper {
    List<Address> selectAllAddress(int userId);

    int updateAddress(@Param("address") Address address);

    int insertAddress(@Param("address") Address address);

    Address selectAddressById(int id);

    int deleteAddress(int id);

    //设置默认地址
    int setDefaultAddress(int id);

    //取消默认地址
    int cancelDefaultAddress(int id);
}
